package c03;
class Animal1{
    public void shout(){
        System.out.println("动物发出的叫声");
    }
}
class Dog1 extends  Animal{
     void shout(){
        System.out.println("汪汪汪·······");
    }
}
public class c4 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.shout();
    }
}
